/**
 * @author Ruben Weiejrs
 * @author Geert de Leeuw
 * @since 19-02-'08
 */

window.addEvent('domready', init);

function init () {
	//get klassen van database
	
	var url = 'data/getAllClasses.txt';
	var request = new Json.Remote(url, {
		onComplete: function(jsonObj) {
			fillDatafield(jsonObj);
		}
	}).send();

	
}

function fillDatafield(data){
	var field = $("classHolder");
	data.each(function (rowData) {
		var p = new Element ("p");
		p.injectInside(field);
	 	var label = new Element ("label", {for: "class_"+rowData.id});
	});
}
